<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>编辑实验中心</title>
	<script type="text/javascript" src="__JS__/menu.js"></script>
	<script type="text/javascript" src="__JS__/leftmenubar.js"></script>
	<link rel="stylesheet" type="text/css" href="__CSS__/header.css" />
	<script type="text/javascript" src="__JS__/jshelper.js"></script> 
	<link rel="stylesheet" type="text/css" href="__CSS__/footer.css" />
	<script type="text/javascript" src="__JS__/jQuery/jquery.js"></script>
    <script type="text/javascript" src="__JS__/jQuery/jquery.form.js"></script>
<script   type= "text/javascript"> 
	function   subform(gourl){   
 	 var   gourl; 
  	form2.action=gourl; 
  	form2.submit(); 
	} 
</script> 
	<script type="text/JavaScript">
       $(function(){
           $('#form1').ajaxForm({
               //beforeSubmit:  function(){alert("before");},  // pre-submit callback
               success:       complete,  // post-submit callback
               error:function(){alert("error");},
               dataType: 'json'
           });
           
           function complete(data){
               if (data.status==1)
               {
               	window.location='__URL__/centerlabdetail';
               }else{
                   $('#result').html(data.info).show();
               }
           }
       });
       </script>
</head>

<body bgcolor="#EEEEEE">
	<div class="nowposition">
	当前位置：
	<a href='__APP__/index/index'  class="nowpositionhref">主页</a>>
	<a href='__URL__/index'  class="nowpositionhref">后台管理</a>>
	<a href='__URL__/centerlabdetail'  class="nowpositionhref">实验中心管理</a>>
	<a href="__URL__/centerlabedit"  class="nowpositionhref">实验中心编辑</a>
	</div>
	<div id="container">
		<!-- layout::Auth:leftmenu::0 -->
	</div>
	<div class="centerlab_edit">
	<div align="left">
		<a href="__URL__/adddcustom/id/<?php echo ($vo["id"]); ?>" style="font-size:17px; text-decoration:none; color:blue; font-weight:bold;">创建实验中心主页</a>
		<div style="margin-top:-20px; margin-left:200px;">
			<form id="form2" method="post">
			<tr>
			<td width="300" >实验中心主页：
			<input type='hidden' name='id' value =<?php echo ($c["id"]); ?>>
			<input type='hidden' name='departmentid' value='<?php echo ($c["departmentid"]); ?>'></td>
			</tr>
			<tr>
			<td><input   type= "button"   name= "btn1 "   value= "修改 "   onclick= "subform('__URL__/dcustomedit'); "></td> 
			<td><input   type= "button"   name= "btn2 "   value= "删除 "   onclick= "subform('__URL__/dcustomdelete'); "></td>
			</tr>	
			</form>
		</div>
	</div>
		<form id='form1' method="post" action="__URL__/centerlabupdate" >
			<input type="hidden" name="id" value=<?php echo ($vo["id"]); ?>>
			<div ><a href="__URL__/centerlabdetail" style="text-decoration:none">返回</a></div>
			<div id='result' style="margin-left:80px;"></div>	
			<table border="0" align="center">
				<tr>
					<td width="400" >实验中心名称 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;<?php echo ($vo["name"]); ?></td>
				</tr>
				<tr>
					<td width="400" >修改实验中心名称：<input type="text" name="name" value=<?php echo ($vo["name"]); ?>></td>				
				</tr>
				<tr>
					<td><input type="submit" value="更新"></td>
				</tr>
			</table>
		</form>
		
		
	</div>

</body>
</html>